import request from '@/utils/request'
export function getClients(params) {
  return request({
    url: '/clients',
    params
  })
}
export function getClientsCount() {
  return request({
    url: '/clients/count'
  })
}
export function addClients(data) {
  return request({
    url: '/clients',
    method: 'post',
    data
  })
}
export function getScreenClients(id, params) {
  return request({
    url: `/clients/${id}`,
    params
  })
}
export function delClients(id) {
  return request({
    url: `/clients/${id}`,
    method: 'delete'
  })
}
export function getPersonalClients(id) {
  return request({
    url: `/clients/${id}`
  })
}
export function editPersonalClients(data) {
  return request({
    url: `/clients/${data.id}`,
    method: 'put',
    data
  })
}
